Skip to content

Commit ed4b763

Browse files
committed
Stupid if/else if/else nonsense
1 parent 5fb2975 commit ed4b763

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

imgui_markdown.h

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -542,11 +542,6 @@ namespace ImGui
542542
// If we're at the beginning of the line, count any spaces
543543
if( line.isLeadingSpace )
544544
{
545-
if( c == ' ' )
546-
{
547-
++line.leadSpaceCount;
548-
continue;
549-
}
550545
if ( (mdConfig_.formatFlags & ImGuiMarkdownFormatFlags_DiscardExtraNewLines) ) // Discard LF and CRLF newlines by markdown spec
551546
{
552547
if ( c == '\n' )
@@ -563,6 +558,12 @@ namespace ImGui
563558
continue;
564559
}
565560
}
561+
562+
if( c == ' ' )
563+
{
564+
++line.leadSpaceCount;
565+
continue;
566+
}
566567
else
567568
{
568569
line.isLeadingSpace = false;

0 commit comments

Comments
 (0)