From c1e2db0ea1d57029f6726f6a73a56e6fac6ec92d Mon Sep 17 00:00:00 2001 From: Wolfgang Dautermann Date: Sun, 26 Jan 2025 13:56:21 +0100 Subject: [PATCH] HTML export: print output labels on the left side. Use , that seems to work. --- NEWS.md | 1 + src/cells/Cell.cpp | 10 +++++----- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/NEWS.md b/NEWS.md index c2647f6f2..1b7263669 100644 --- a/NEWS.md +++ b/NEWS.md @@ -11,6 +11,7 @@ - CopyAsMathML: improvements (operators and identifiers) - Fix the check for Gnuplot-Cairo on Windows. - Fix the (Windows) crash in the suggestions menu (#1980). +- HMTL export: print the output labels on the left side. # 24.11.0 diff --git a/src/cells/Cell.cpp b/src/cells/Cell.cpp index 7ede25128..fe672f1da 100644 --- a/src/cells/Cell.cpp +++ b/src/cells/Cell.cpp @@ -288,7 +288,7 @@ int Cell::GetLineWidth() const { if (&tmp != this) if (tmp.m_isBrokenIntoLines || tmp.m_breakLine || (tmp.m_type == MC_TYPE_MAIN_PROMPT)) - break; + break; width += tmp.m_width; } return width; @@ -516,7 +516,7 @@ void Cell::BreakLines_List() ResetSize_RecursivelyList(); } -bool Cell::BreakUpCells() { +bool Cell::BreakUpCells() { int clientWidth = .8 * m_configuration->GetCanvasSize().x - m_configuration->GetIndent(); if (clientWidth < Scale_Px(50)) @@ -544,7 +544,7 @@ bool Cell::UnBreakUpCells() { } if(retval) ResetSize_RecursivelyList(); - + return retval; } @@ -745,14 +745,14 @@ wxString Cell::ListToMathML(bool startofline) const { if (highlight) retval += wxS(""); - // If we grouped multiple cells as a single object we need to cose this group + // If we grouped multiple cells as a single object we need to close this group // now if ((multiCell) && (!needsTable)) retval = wxS("") + retval + wxS("\n"); // If we put the region we exported into a table we need to end this table now if (needsTable) - retval = wxS("\n") + retval + + retval = wxS("\n") + retval + wxS("\n"); return retval; }