##// END OF EJS Templates
Fixed, indentation broken post in person review
Jonathan Frederic -
Show More
@@ -34,8 +34,8 b''
34 % Purpose: Renders an output/input prompt
34 % Purpose: Renders an output/input prompt
35 ((* macro add_prompt(text, cell, prompt) -*))
35 ((* macro add_prompt(text, cell, prompt) -*))
36 ((*- set prompt_number = "" ~ cell.prompt_number -*))
36 ((*- set prompt_number = "" ~ cell.prompt_number -*))
37 ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*))
37 ((*- set indentation = " " * (prompt_number | length + 7) -*))
38 \begin{verbatim}
38 \begin{verbatim}
39 (((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont='') -)))
39 (((- text | add_prompts(first=prompt ~ '[' ~ prompt_number ~ ']: ', cont=indentation) -)))
40 \end{verbatim}
40 \end{verbatim}
41 ((*- endmacro *))
41 ((*- endmacro *))
@@ -47,8 +47,8 b''
47 % Purpose: Renders an output/input prompt
47 % Purpose: Renders an output/input prompt
48 ((* macro add_prompt(text, cell, prompt, prompt_color) -*))
48 ((* macro add_prompt(text, cell, prompt, prompt_color) -*))
49 ((*- set prompt_number = "" ~ cell.prompt_number -*))
49 ((*- set prompt_number = "" ~ cell.prompt_number -*))
50 ((*- set prompt_number_replacement = "." * (prompt_number | length + 2) -*))
50 ((*- set indention = " " * (prompt_number | length + 7) -*))
51 \begin{Verbatim}[commandchars=\\\{\}]
51 \begin{Verbatim}[commandchars=\\\{\}]
52 ((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ prompt_number ~ '}]:} ', cont='') )))
52 ((( text | add_prompts(first='{\color{' ~ prompt_color ~ '}' ~ prompt ~ '[{\\color{' ~ prompt_color ~ '}' ~ prompt_number ~ '}]:} ', cont=indention) )))
53 \end{Verbatim}
53 \end{Verbatim}
54 ((*- endmacro *))
54 ((*- endmacro *))
General Comments 0
You need to be logged in to leave comments. Login now