forked from fullfabric/sablon
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Closes senny#32. It's possible that a simple field contains more than a single `w:r` tag. Previously sablon would replace the text of the first `w:r` to reuse it's formatting and keep all additional `w:r` as is. The result was half-replaced fields that still contained leftovers from the merge fields display. This patch removes all extra `w:r` tags.
- Loading branch information
Showing
3 changed files
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<w:p> | ||
<w:r><w:t xml:space="preserve">Generated by </w:t></w:r> | ||
<w:fldSimple w:instr=" MERGEFIELD =system_name \* MERGEFORMAT "> | ||
<w:r w:rsidR="002D39A9"> | ||
<w:rPr> | ||
<w:rFonts w:hint="eastAsia"/> | ||
<w:noProof/> | ||
</w:rPr> | ||
<w:t>«</w:t> | ||
</w:r> | ||
<w:r w:rsidR="002D39A9"> | ||
<w:rPr><w:noProof/></w:rPr> | ||
<w:t>=system_name</w:t> | ||
</w:r> | ||
<w:r w:rsidR="002D39A9"> | ||
<w:rPr><w:rFonts w:hint="eastAsia"/><w:noProof/></w:rPr> | ||
<w:t>»</w:t> | ||
</w:r> | ||
</w:fldSimple> | ||
</w:p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters