{"action":"closed","issue":{"url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/203","repository_url":"https://api.github.com/repos/open-xml-templating/docxtemplater","labels_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/203/labels{/name}","comments_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/203/comments","events_url":"https://api.github.com/repos/open-xml-templating/docxtemplater/issues/203/events","html_url":"https://github.com/open-xml-templating/docxtemplater/issues/203","id":136734901,"number":203,"title":"Using {@rawXML} in table cell - problems with formatting","user":{"login":"bythornchris","id":16609414,"avatar_url":"https://avatars.githubusercontent.com/u/16609414?v=3","gravatar_id":"","url":"https://api.github.com/users/bythornchris","html_url":"https://github.com/bythornchris","followers_url":"https://api.github.com/users/bythornchris/followers","following_url":"https://api.github.com/users/bythornchris/following{/other_user}","gists_url":"https://api.github.com/users/bythornchris/gists{/gist_id}","starred_url":"https://api.github.com/users/bythornchris/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bythornchris/subscriptions","organizations_url":"https://api.github.com/users/bythornchris/orgs","repos_url":"https://api.github.com/users/bythornchris/repos","events_url":"https://api.github.com/users/bythornchris/events{/privacy}","received_events_url":"https://api.github.com/users/bythornchris/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-26T15:56:44Z","updated_at":"2016-02-29T09:21:04Z","closed_at":"2016-02-29T09:21:04Z","body":"Hi,\r\n\r\nI have a table with a fixed font size which is not based on the \"Normal\" style and trying to use a loop to create new table rows.\r\nWhen I replace simple tags eg. {name}, it works well and creates new rows as required.\r\nWhen replacing with `{@rawXML}`, because I have linebreak characters, the font size reverts to the \"Normal\" style and is too big. The XML replaces the linebreak characters in `sText` with `<w:br/>` and wraps with `\"<w:p><w:r><w:t>\" + sText + \"</w:t></w:r></w:p>\"`.\r\n\r\nI have tried wrapping the text with additional styling XML as follows:\r\n\r\n`\"<w:p><w:pPr><w:rPr><w:sz w:val=\\\"18\\\"/></w:rPr></w:pPr><w:r><w:rPr><w:sz w:val=\\\"18\\\"/></w:rPr><w:t>\" + sText + \"</w:t></w:r></w:p>\"` (and many other variations), but keep getting the MSWord error \r\n\r\n`Ambiguous cell mapping encountered. Possible missing paragraph element. <p> elements are required before every </tc>`\r\n\r\nIs the rawXML code replaced up to the first `<w:p>` properly, or is there something else that I am missing?\r\n\r\nMany thanks"}}