Opened 17 years ago
Last modified 15 years ago
#4164 new defect
blank line in letter address causes failure
Reported by: | Owned by: | lasgouttes | |
---|---|---|---|
Priority: | normal | Milestone: | |
Component: | latex export | Version: | 1.5.1 |
Severity: | normal | Keywords: | |
Cc: | uwestoehr@… |
Description
Hi,
According to Debian #271233, empty lines in the address field in letters
causes a latex error. It says "LaTeX Error: There's no line here to end.". The
attached sample file provided by the reporter illustrates the problem. I have
verified that the bug still exists in LyX 1.5.1.
Bug URL: http://bugs.debian.org/271233
Attachments (2)
Change History (8)
by , 17 years ago
Attachment: | bug271233.lyx added |
---|
comment:1 by , 17 years ago
Cc: | added |
---|---|
Resolution: | → wontfix |
Status: | new → closed |
This a limitation of LaTeX's standard letter class.
To avoid this, you can add this as ERT to the empty line:
\hspace*{0pt}
(see the attachment)
There is not much we can do here, for proper layouted letters you can use one of
the various other letter classes LyX provides.
comment:2 by , 17 years ago
Resolution: | wontfix |
---|---|
Status: | closed → new |
Of course something could (and should) be done. As a user I expect that a
document without dirty tricks (i.e. ERT) does not lead to a LaTeX Error. If it
does, then the software is crap.
Therefore it should either be impossible to enter such empty lines, or the
created LaTeX should be modified so that it works.
comment:3 by , 17 years ago
Summary: | blank line in address causes letter failure → blank line in letter address causes failure |
---|
You convinced me.
comment:4 by , 17 years ago
Presumably, the solution will have to involve an indication in the layout files
of where you can have blank lines and where you can't.
comment:5 by , 15 years ago
Priority: | high → normal |
---|
comment:6 by , 10 years ago
Owner: | changed from | to
---|
sample