Opened 17 years ago

Last modified 15 years ago

#4164 new defect

blank line in letter address causes failure

Reported by: pelle@… 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)

bug271233.lyx (1.2 KB ) - added by pelle@… 17 years ago.
sample
attachment.lyx (1.8 KB ) - added by Uwe Stöhr 17 years ago.
corrected sample

Download all attachments as: .zip

Change History (8)

by pelle@…, 17 years ago

Attachment: bug271233.lyx added

sample

comment:1 by Uwe Stöhr, 17 years ago

Cc: uwestoehr@… added
Resolution: wontfix
Status: newclosed

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.

by Uwe Stöhr, 17 years ago

Attachment: attachment.lyx added

corrected sample

comment:2 by Georg Baum, 17 years ago

Resolution: wontfix
Status: closednew

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 Uwe Stöhr, 17 years ago

Summary: blank line in address causes letter failureblank line in letter address causes failure

You convinced me.

comment:4 by Richard Heck, 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 ps, 15 years ago

Priority: highnormal

comment:6 by Richard Heck, 10 years ago

Owner: changed from nobody@… to lasgouttes
Note: See TracTickets for help on using tickets.