From f0aa1fc0c92bd3a7dad5c3416b46c7369496495c Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Mon, 31 Jul 2023 22:20:20 +0300 Subject: [PATCH] style : make scode respect newlines. --- tex/style.tex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tex/style.tex b/tex/style.tex index 970f73f..ddd62fb 100644 --- a/tex/style.tex +++ b/tex/style.tex @@ -45,7 +45,7 @@ \newcommand{\scproperty}[1]{\textcolor{code_property}{#1}} % color code string. \newcommand{\sckeyword} [1]{\textcolor{code_keyword}{#1}} % color code string. \newcommand{\sccomment} [1]{\textcolor{code_comment}{#1}} % color code string. -\newenvironment{scode}{\begin{scodebox}\catcode32=12}{\end{scodebox}} % code block. +\newenvironment{scode}{\begin{scodebox}\catcode32=12\obeylines}{\end{scodebox}} % code block. % settings. \linespread{1.5} % height between non-breaking lines.