[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: LaTeX add blank lines between paragraphs
From: |
Gavin D. Smith |
Subject: |
branch master updated: LaTeX add blank lines between paragraphs |
Date: |
Thu, 08 Jul 2021 07:19:39 -0400 |
This is an automated email from the git hooks/post-receive script.
gavin pushed a commit to branch master
in repository texinfo.
The following commit(s) were added to refs/heads/master by this push:
new 0e0f4e5 LaTeX add blank lines between paragraphs
0e0f4e5 is described below
commit 0e0f4e59304e6e910287ebd5287bc106cf555d7c
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Thu Jul 8 12:19:19 2021 +0100
LaTeX add blank lines between paragraphs
---
tp/Texinfo/Convert/LaTeX.pm | 19 +++++--------------
1 file changed, 5 insertions(+), 14 deletions(-)
diff --git a/tp/Texinfo/Convert/LaTeX.pm b/tp/Texinfo/Convert/LaTeX.pm
index 887db4d..0618a9f 100644
--- a/tp/Texinfo/Convert/LaTeX.pm
+++ b/tp/Texinfo/Convert/LaTeX.pm
@@ -1078,7 +1078,7 @@ sub _convert($$)
);
my $section_cmd = $section_map{$command};
if ($section_cmd) {
- $result .= $section_cmd."{$heading}\n";
+ $result .= $section_cmd."{$heading}\n\n";
}
}
} elsif (($command eq 'item' or $command eq 'itemx')
@@ -1198,13 +1198,13 @@ sub _convert($$)
}
# open 'type' constructs.
- my $paragraph;
+ my $paragraph = 0;
if ($root->{'type'}) {
if ($root->{'type'} eq 'paragraph') {
- # ...
+ $paragraph = 1;
} elsif ($root->{'type'} eq 'preformatted'
or $root->{'type'} eq 'rawpreformatted') {
- # ...
+ $preformatted = 1;
} elsif ($root->{'type'} eq 'def_line') {
if ($root->{'extra'} and $root->{'extra'}->{'def_parsed_hash'}
and %{$root->{'extra'}->{'def_parsed_hash'}}) {
@@ -1407,17 +1407,8 @@ sub _convert($$)
}
}
# close paragraphs and preformatted
- if ($paragraph) {
- $result .= "\n\n";
- if ($self->{'context'}->[-1] eq 'flushright') {
- }
- } elsif ($preformatted) {
+ if ($paragraph or $preformatted) {
$result .= "\n\n";
- if ($result ne '') {
- $result .= "\n";
- }
- if ($self->{'context'}->[-1] eq 'flushright') {
- }
}
# close commands
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: LaTeX add blank lines between paragraphs,
Gavin D. Smith <=