Skip to content

Commit

Permalink
Merge pull request #88 from hieplenet/main
Browse files Browse the repository at this point in the history
Update MiniWord.Implment.cs
  • Loading branch information
shps951023 authored Nov 2, 2024
2 parents 57de2a5 + 640845d commit f6cbed8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MiniWord/MiniWord.Implment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ private static void AvoidSplitTagText(OpenXmlElement xmlElement)
foreach (var text in texts)
{
var clear = false;
if (text.InnerText.StartsWith("{"))
if (text.InnerText.TrimStart().StartsWith("{"))
{
needAppend = true;
}
Expand All @@ -247,7 +247,7 @@ private static void AvoidSplitTagText(OpenXmlElement xmlElement)
sb.Append(text.InnerText);
pool.Add(text);

var s = sb.ToString(); //TODO:
var s = sb.ToString().TrimStart(); //TODO:
// TODO: check tag exist
// TODO: record tag text if without tag then system need to clear them
// TODO: every {{tag}} one <t>for them</t> and add text before first text and copy first one and remove {{, tagname, }}
Expand Down

0 comments on commit f6cbed8

Please sign in to comment.