Skip to content

Commit

Permalink
Remove NO_LABEL labels when converting forms
Browse files Browse the repository at this point in the history
  • Loading branch information
alxndrsn committed Jun 30, 2017
1 parent 379f4c3 commit 97be69b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "medic-configurer-beta",
"version": "1.0.56",
"version": "1.0.57",
"description": "Configure Medic Mobile deployments",
"main": "index.js",
"scripts": {
Expand Down
4 changes: 4 additions & 0 deletions src/lib/convert-forms.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ const fixXml = path => {
// to actually merge the two instead.
.replace(/<inputs>/, META_XML_SECTION)

// XLSForm does not allow saving a field without a label, so we use the
// placeholder NO_LABEL.
.replace(/NO_LABEL/g, '')

// No comment.
.replace(/.*DELETE_THIS_LINE.*(\r|\n)/g, '')
;
Expand Down

0 comments on commit 97be69b

Please sign in to comment.