We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fb2975 commit ed4b763Copy full SHA for ed4b763
imgui_markdown.h
@@ -542,11 +542,6 @@ namespace ImGui
542
// If we're at the beginning of the line, count any spaces
543
if( line.isLeadingSpace )
544
{
545
- if( c == ' ' )
546
- {
547
- ++line.leadSpaceCount;
548
- continue;
549
- }
550
if ( (mdConfig_.formatFlags & ImGuiMarkdownFormatFlags_DiscardExtraNewLines) ) // Discard LF and CRLF newlines by markdown spec
551
552
if ( c == '\n' )
@@ -563,6 +558,12 @@ namespace ImGui
563
558
continue;
564
559
}
565
560
561
+
562
+ if( c == ' ' )
+ {
+ ++line.leadSpaceCount;
+ continue;
566
+ }
567
else
568
569
line.isLeadingSpace = false;
0 commit comments