Skip to content

Commit 18bc7e3

Browse files
committed
latex: small fix for text after addplot coordinates
1 parent effb176 commit 18bc7e3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/latex.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ void SpLatex::plot(size_t ln, size_t indent, const std::string& cmdline)
170170

171171
// check whether line contains an \addplot command
172172
static const boost::regex
173-
re_addplot("[[:blank:]]*(\\\\addplot.*coordinates \\{)[^}]+(\\};.*)");
173+
re_addplot("[[:blank:]]*(\\\\addplot.*coordinates \\{)[^}]+(\\}[^;]*;.*)");
174174
boost::smatch rm;
175175

176176
if (ln < m_lines.size() &&

0 commit comments

Comments
 (0)