Skip to content

Commit 9846f08

Browse files
committed
reformat: replace \bf and \em with \textbf{} and \emph{} due to latex warnings
1 parent 7e90836 commit 9846f08

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/reformat.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -698,16 +698,16 @@ std::string Reformat::format(int row, int col, const std::string& in_text) const
698698
if (in_text == fmt.m_min_text)
699699
{
700700
if (fmt.m_min_format == Line::MF_BOLD)
701-
text = "\\bf " + text;
701+
text = "\\textbf{" + text + "}";
702702
else if (fmt.m_min_format == Line::MF_EMPH)
703-
text = "\\em " + text;
703+
text = "\\emph{" + text + "}";
704704
}
705705
else if (in_text == fmt.m_max_text)
706706
{
707707
if (fmt.m_max_format == Line::MF_BOLD)
708-
text = "\\bf " + text;
708+
text = "\\textbf{" + text + "}";
709709
else if (fmt.m_max_format == Line::MF_EMPH)
710-
text = "\\em " + text;
710+
text = "\\emph{" + text + "}";
711711
}
712712
}
713713

0 commit comments

Comments
 (0)