]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/hanging.module
Fix #8201: our translation mechanism chokes on the character "
[lyx.git] / lib / layouts / hanging.module
index 3ac84748d5e99d8ec8d7fa1583796919dda9e4ce..870516fce98a9e93b8cf9ef7f3360e96a37ab187 100644 (file)
@@ -1,4 +1,9 @@
-#\DeclareLyXModule{Adds an environment for hanging paragraphs.}{Hanging}
+#\DeclareLyXModule{Hanging}
+#DescriptionBegin
+#Adds an environment for hanging paragraphs. 
+#Hanging paragraph is a paragraph in which the first line is set to the left margin, but all subsequent lines are indented.
+#DescriptionEnd
+
 #Author: Richard Heck
 
 #Hanging paragraph code adapted from hanging.sty, available at:
@@ -6,7 +11,7 @@
 #Copyright Peter R. Wilson.
 #Released under the LaTeX Project Public License.
 
-Format 6
+Format 36
 
 Style Hanging
   LatexType Environment
@@ -25,7 +30,7 @@ Style Hanging
           \ifthenelse{\lengthtest{\parindent > 0pt}}%
             {\setlength{\lyxhang}{\parindent}}%
             {\setlength{\lyxhang}{2em}}%
-          \begin{hangparas}{\lyxhang}{1}%
+          \par\begin{hangparas}{\lyxhang}{1}%
         }
         {\end{hangparas}}
     }{%else