]> git.lyx.org Git - lyx.git/blobdiff - lib/layouts/hanging.module
Correct version number
[lyx.git] / lib / layouts / hanging.module
index 2a7ecb580c3b72f6333cfde84e52509ea3ae6f19..7ee8421ad361b87380443dedf25bbf787763c6a1 100644 (file)
@@ -1,4 +1,5 @@
-#\DeclareLyXModule{Hanging}
+#\DeclareLyXModule{Hanging Paragraphs}
+#\DeclareCategory{Paragraph Styles}
 #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.
@@ -11,7 +12,7 @@
 #Copyright Peter R. Wilson.
 #Released under the LaTeX Project Public License.
 
-Format 11
+Format 82
 
 Style Hanging
   LatexType Environment
@@ -27,13 +28,12 @@ Style Hanging
       \usepackage{hanging}
       \newenvironment{hangparagraphs}
         {%
-          \par
           \ifthenelse{\lengthtest{\parindent > 0pt}}%
             {\setlength{\lyxhang}{\parindent}}%
             {\setlength{\lyxhang}{2em}}%
-          \begin{hangparas}{\lyxhang}{1}%
+          \par\begin{hangparas}{\lyxhang}{1}%
         }
-        {\par\end{hangparas}}
+        {\end{hangparas}}
     }{%else
       \newenvironment{hangparagraphs}
         {%