We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
^3.29.0
Browser
Hi @edi9999 ,
docxtemplater/es6/xml-templater.js
Lines 10 to 16 in 6d3883b
I'm looking for a way to be able to read a document even if it has a line wrap.
At the moment the only way to be able to read a document seems to be to use the following function: doc.getFullText().
doc.getFullText()
So I went to see how the function is done, it looks like a join is done, so all the text is seen without wrapping.
So if the function were changed like this what would happen:
function getFullText(content, tagsXmlArray, separator = '') { const matcher = xmlMatcher(content, tagsXmlArray); const result = matcher.matches.map((match) => match.array[2]); return wordToUtf8(convertSpaces(result.join(separator))); }
The text was updated successfully, but these errors were encountered:
Yes, doc.getFullText() is there for historical purposes (I added it 7 years ago and didn't want to break backwards-compatibility).
Adding a correct algorithm for this would require quite some work, I'm not considering adding it myself but would accept a pull request.
However the separator thing would not work.
Sorry, something went wrong.
I have just added to the roadmap to remove the getFullText in v4 to avoid the confusion for future users.
getFullText
#340
I don't want to have code that I know is not core to the library and will not have the proper care it deserves.
@edi9999 : I personally wouldn't remove it.
No branches or pull requests
Environment
^3.29.0
Browser
How to reproduce my problem :
Hi @edi9999 ,
docxtemplater/es6/xml-templater.js
Lines 10 to 16 in 6d3883b
I'm looking for a way to be able to read a document even if it has a line wrap.
At the moment the only way to be able to read a document seems to be to use the following function:
doc.getFullText()
.So I went to see how the function is done, it looks like a join is done, so all the text is seen without wrapping.
So if the function were changed like this what would happen:
The text was updated successfully, but these errors were encountered: