diff --git a/NoteHighlightAddin/AddIn.cs b/NoteHighlightAddin/AddIn.cs index 769773f..c5c25e9 100644 --- a/NoteHighlightAddin/AddIn.cs +++ b/NoteHighlightAddin/AddIn.cs @@ -586,10 +586,17 @@ private XElement PrepareFormatedContent(string htmlContent, HighLightParameter p nr = defaultStyle + config.LineNrReplaceCh.PadLeft(5) + ""; } - cell1.Add(new XElement(ns + "OEChildren", - new XElement(ns + "OE", + XElement oeElement = new XElement(ns + "OE", new XElement(ns + "T", - new XCData(nr))))); + new XCData(nr))); + if (ContainsAsianCharacter(itemLine)) + { + oeElement.Add(new XAttribute("spaceBefore", config.AsianBeforeSpace)); + oeElement.Add(new XAttribute("spaceAfter", config.AsianAfterSpace)); + } + + cell1.Add(new XElement(ns + "OEChildren", + oeElement )); } else {