Skip to content

Commit 3d4dc32

Browse files
committed
take over spaceAfter from main
Signed-off-by: Matthias Weiss <[email protected]>
1 parent a839596 commit 3d4dc32

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

OneMore/Commands/File/Markdown/MarkdownConverter.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,10 +209,13 @@ public MarkdownConverter RewriteTodo(IEnumerable<XElement> paragraphs)
209209
// special treatment of todo tag
210210
if (match.Success)
211211
{
212+
text.Value = text.Value.Substring(match.Length);
213+
212214
var org = text.Value;
213215
var completed = match.Groups["x"].Value == "x";
214216
text.Value = text.Value.Replace((completed ? "[x]" : "[ ]"), "");
215217
cdata.Value = cdata.Value.Replace(org, text.Value);
218+
// ensure TagDef exists
216219
page.SetTag(paragraph, tagSymbol: "3", tagStatus:completed,tagName:"todo");
217220
}
218221
else
@@ -263,7 +266,7 @@ public MarkdownConverter SpaceOutParagraphs(float spaceAfter)
263266
public MarkdownConverter SpaceOutParagraphs(
264267
IEnumerable<XElement> paragraphs, float spaceAfter)
265268
{
266-
var after = spaceAfter.ToString("####0.00", CultureInfo.InvariantCulture);
269+
var after = $"{spaceAfter:0.0}";
267270

268271
var last = paragraphs.Last();
269272

0 commit comments

Comments
 (0)