{"action":"created","issue":{"url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/175","labels_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/175/labels{/name}","comments_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/175/comments","events_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/175/events","html_url":"https://github.com/open-xml-templating/docxtemplater/issues/175","id":112242963,"number":175,"title":"Error when use multiline tag on same line as basic tag","user":{"login":"aetna-softwares","id":8860618,"avatar_url":"https://avatars.githubusercontent.com/u/8860618?v=3","gravatar_id":"","url":"https://api.github.com/users/aetna-softwares","html_url":"https://github.com/aetna-softwares","followers_url":"https://api.github.com/users/aetna-softwares/followers","following_url":"https://api.github.com/users/aetna-softwares/following{/other_user}","gists_url":"https://api.github.com/users/aetna-softwares/gists{/gist_id}","starred_url":"https://api.github.com/users/aetna-softwares/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aetna-softwares/subscriptions","organizations_url":"https://api.github.com/users/aetna-softwares/orgs","repos_url":"https://api.github.com/users/aetna-softwares/repos","events_url":"https://api.github.com/users/aetna-softwares/events{/privacy}","received_events_url":"https://api.github.com/users/aetna-softwares/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-19T22:05:44Z","updated_at":"2015-10-21T16:47:43Z","closed_at":null,"body":"When we have a multiline tag on the same line as a basic tag, the generation fail with error : \r\n\r\n```\r\nError: no < at the beginning of < (2)\r\n    at DocXTemplater.module.exports.XmlTemplater.render (/home/ubuntu/Documents/work/tests/templates/node_modules/docxtemplater/js/xmlTemplater.js:141:21)\r\n    at DocxGen.renderFile (/home/ubuntu/Documents/work/tests/templates/node_modules/docxtemplater/js/docxgen.js:64:41)\r\n    at DocxGen.render (/home/ubuntu/Documents/work/tests/templates/node_modules/docxtemplater/js/docxgen.js:75:14)\r\n    at Object.<anonymous> (/home/ubuntu/Documents/work/tests/templates/test.js:21:5)\r\n    at Module._compile (module.js:456:26)\r\n    at Object.Module._extensions..js (module.js:474:10)\r\n    at Module.load (module.js:356:32)\r\n    at Function.Module._load (module.js:312:12)\r\n    at Function.Module.runMain (module.js:497:10)\r\n    at startup (node.js:119:16)\r\n```\r\n\r\nthe input docx look like this : \r\n```\r\n {@text}\t  \t\t\t\t\t\t\t\tdate : {date}\r\nnext line\r\n\r\nblah blah\r\n```\r\n\r\ntest code to reproduce the error : \r\n```\r\nvar fs = require('fs');\r\nvar Docxtemplater = require('docxtemplater');\r\n\r\nvar content = fs\r\n    .readFileSync(__dirname + \"/input.docx\", \"binary\");\r\n\r\nvar doc = new Docxtemplater(content);\r\n\r\nvar pre = '<w:p><w:r><w:t>';\r\nvar post = '</w:t></w:r></w:p>';\r\nvar lineBreak = '<w:br/>';\r\ntext = pre + 'testing line 1' + lineBreak + 'testing line 2' + post;\r\n\r\n//set the templateVariables\r\ndoc.setData({\r\n    \"text\":text,\r\n    \"date\":\"01/01/2015\"\r\n});\r\n\r\ndoc.render();\r\n\r\nvar buf = doc.getZip()\r\n             .generate({type:\"nodebuffer\"});\r\n\r\nfs.writeFileSync(__dirname+\"/output.docx\",buf\r\n```"},"comment":{"url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/comments/149958260","html_url":"https://github.com/open-xml-templating/docxtemplater/issues/175#issuecomment-149958260","issue_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/175","id":149958260,"user":{"login":"edi9999","id":2071336,"avatar_url":"https://avatars.githubusercontent.com/u/2071336?v=3","gravatar_id":"","url":"https://api.github.com/users/edi9999","html_url":"https://github.com/edi9999","followers_url":"https://api.github.com/users/edi9999/followers","following_url":"https://api.github.com/users/edi9999/following{/other_user}","gists_url":"https://api.github.com/users/edi9999/gists{/gist_id}","starred_url":"https://api.github.com/users/edi9999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edi9999/subscriptions","organizations_url":"https://api.github.com/users/edi9999/orgs","repos_url":"https://api.github.com/users/edi9999/repos","events_url":"https://api.github.com/users/edi9999/events{/privacy}","received_events_url":"https://api.github.com/users/edi9999/received_events","type":"User","site_admin":false},"created_at":"2015-10-21T16:47:43Z","updated_at":"2015-10-21T16:47:43Z","body":"You have the same problem in your docx as #176.\n\nYour {@} should be the only text in that paragraph"}}