File tree 3 files changed +13
-4
lines changed
3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 42
42
43
43
curl https://raw.githubusercontent.com/github/gitignore/main/TeX.gitignore > .gitignore
44
44
git add .gitignore
45
- git commit -m " Add gitignore" --date=" 2017-08-06 12:03"
45
+ git commit -m " Add gitignore
46
+
47
+ Get the TeX.gitignore from the gitignore repository and
48
+ use it for this project.
49
+
50
+ From github" --date=" 2017-08-06 12:03"
46
51
47
52
charlie
48
53
Original file line number Diff line number Diff line change @@ -314,11 +314,13 @@ \section*{Changelog}
314
314
\end{description}
315
315
\end {lstlisting }
316
316
\noindent
317
- \newcommand \commitline [1]{\item #1}
317
+ \newcommand \commitline [2]{\item #1
318
+
319
+ #2}
318
320
\newcommand \formatversion [3]{%
319
321
\item [#1] \gittag [(taggerdate)(taggerdate:short)(authordate:short)]{printdate}{#1}
320
322
\begin {itemize }
321
- \forgitcommit [s]{commitline}{#3}
323
+ \forgitcommit [s,b ]{commitline}{#3}
322
324
\end {itemize }%
323
325
}%
324
326
\setlength {\fboxsep }{16pt}%
Original file line number Diff line number Diff line change @@ -45,7 +45,8 @@ local api = {
45
45
[' {' ] = ' \\ {' ,
46
46
[' }' ] = ' \\ }' ,
47
47
[' ~' ] = ' \\ textasciitilde ' ,
48
- [' %^' ] = ' \\ textasciicircum '
48
+ [' %^' ] = ' \\ textasciicircum ' ,
49
+ [' \n ' ] = ' '
49
50
}
50
51
}
51
52
local mt = {
73
74
74
75
function api :escape_str (value )
75
76
local buf = string.gsub (value , ' \\ ' , ' \\ textbackslash ' )
77
+ buf = string.gsub (buf , " \n %s*\n +" , " \\ par " )
76
78
for search , replace in pairs (self .escape_chars ) do
77
79
buf = string.gsub (buf , search , replace )
78
80
end
You can’t perform that action at this time.
0 commit comments