mirror of https://github.com/patacrep/patacrep.git
Browse Source
* Moreover, error messages also mention file name * Directives can now appear inside text (and not only on their own line)pull/112/head
Louis
9 years ago
11 changed files with 95 additions and 34 deletions
@ -0,0 +1,35 @@ |
|||
{title: Newline} |
|||
{subtitle: Test of "newline" directive} |
|||
|
|||
This is a verse |
|||
With a new line |
|||
{newline} |
|||
The second part of the verse |
|||
Is this line |
|||
|
|||
Here is a new line at the end |
|||
{newline} |
|||
|
|||
Foo bar |
|||
|
|||
{newline} |
|||
And a new line |
|||
At the beginning |
|||
|
|||
{soc} |
|||
New lines can also |
|||
{newline} |
|||
Be in chorus |
|||
{eoc} |
|||
|
|||
{sob} |
|||
New lines can also |
|||
{newline} |
|||
Be in bridges |
|||
{eob} |
|||
|
|||
New lines can also |
|||
{newline} |
|||
Be surrounded by spaces |
|||
|
|||
New lines can {newline} appear in the middle of a line |
@ -1,5 +1,11 @@ |
|||
(* if content.directive() *) |
|||
(* for line in content.lines -*) |
|||
((- render(line) )) |
|||
(* endfor -*) |
|||
(*- else -*) |
|||
\begin{(( content.type ))} |
|||
(* for line in content.lines *) |
|||
(( render(line) )) |
|||
(* endfor *) |
|||
\end{(( content.type ))} |
|||
(*- endif *) |
|||
|
Loading…
Reference in new issue