Skip to content

Commit f6cbed8

Browse files
authored
Merge pull request #88 from hieplenet/main
Update MiniWord.Implment.cs
2 parents 57de2a5 + 640845d commit f6cbed8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/MiniWord/MiniWord.Implment.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ private static void AvoidSplitTagText(OpenXmlElement xmlElement)
238238
foreach (var text in texts)
239239
{
240240
var clear = false;
241-
if (text.InnerText.StartsWith("{"))
241+
if (text.InnerText.TrimStart().StartsWith("{"))
242242
{
243243
needAppend = true;
244244
}
@@ -247,7 +247,7 @@ private static void AvoidSplitTagText(OpenXmlElement xmlElement)
247247
sb.Append(text.InnerText);
248248
pool.Add(text);
249249

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

0 commit comments

Comments
 (0)