Skip to content

Commit

Permalink
fix: make bullets appear on same line in md
Browse files Browse the repository at this point in the history
  • Loading branch information
anna-is-cute committed Mar 12, 2024
1 parent 2b298ec commit 9c4cab7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Util/ImGuiHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -550,12 +550,14 @@ protected override void Write(ImGuiRenderer renderer, ListBlock obj) {
var item = (ListItemBlock) obj[i];
ImGui.TextUnformatted($"{i + 1}{obj.OrderedDelimiter} ");
renderer._lastWasInline = true;
ImGui.SameLine();
renderer.WriteChildren(item);
}
} else {
foreach (var item in obj) {
ImGui.TextUnformatted("");
renderer._lastWasInline = true;
ImGui.SameLine();
renderer.WriteChildren((ListItemBlock) item);
}
}
Expand Down Expand Up @@ -781,4 +783,4 @@ protected override void Write(ImGuiRenderer renderer, LineBreakInline obj) {
ImGui.Spacing();
}
}
}
}

0 comments on commit 9c4cab7

Please sign in to comment.