#9 mismatched = cause problems

open-accepted
code (10)
5
2013-05-21
2012-08-17
sam tygier
No

if = signs are mismatched in for frame titles then various bad things can happen

eg:
==== title ====
->
\begin{frame}
\frametitle{title}
\end{frame}

=== title ====
->
\subsection={title}
\end{document}

which fails to compile

==== title ===
->
\subsection{= title}

compiles, but does not produce a frame.

I am not sure what the best solution is. my general principal is that a program that its meant to produce output in a certain format (here Latex), should not silently output something invalid. I would suggest exiting with an error message, or attempting to fix the problem and outputting a warning. alternatively it could just ignore the line and pass it though verbatim (thats what wiki2beamer claims to do for lines it can't parse)

Discussion

  • Valentin Haenel

    Valentin Haenel - 2013-05-21
    • assigned_to: nobody --> valentin-haenel
    • labels: --> code
    • status: open --> open-accepted
     
  • Valentin Haenel

    Valentin Haenel - 2013-05-21

    zsh» echo "=== foo ===" | code/wiki2beamer

    \subsection{foo}

    zsh» echo "=== foo ====" | code/wiki2beamer

    \subsection{foo}

    =

    zsh» echo "==== foo ===" | code/wiki2beamer

    \subsection{= foo}

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks