Making first paragraphs not indented in exported HTML

Kornel Benko kornel at lyx.org
Mon Apr 11 17:38:26 UTC 2022


Am Mon, 11 Apr 2022 03:22:16 -0400
schrieb Steve Litt via lyx-users <lyx-users at lists.lyx.org>:

> Daniel via lyx-users said on Mon, 11 Apr 2022 08:13:43 +0200
> 
> >On 2022-04-11 03:44, Steve Litt via lyx-users wrote:  
> >> Hi all,
> >> 
> >> In the past, some exporters have implemented the custom of not
> >> indenting the first of several successive paragraphs by using a
> >> different class of paragraph for the first of a series of paragraphs.
> >> This way of doing things makes more work for the person writing the
> >> export, and more work for the person converting the export to
> >> acceptable ePub, because those special classes will need to be backed
> >> out or otherwise specially handled.
> >> 
> >> Not indenting the first of a series of paragraphs is easily
> >> accomplished by the following two lines of CSS:
> >> 
> >> p::first-letter{margin-left: 3em;}
> >> :not(p) + p::first-letter{margin-left:0.0001em;}
> >> 
> >> Let CSS decide which is the first of several consecutive paragraphs,
> >> and let CSS define what to do with that paragraph. Make it easy on
> >> everybody.
> >> 
> >> I took an hour to figure this out. Could somebody please take 3
> >> minutes to forward it to the developer's list and also the person
> >> who is writing the HTML export?
> >> 
> >> Thanks,
> >> 
> >> SteveT
> >> 
> >> Steve Litt
> >> March 2022 featured book: Making Mental Models: Advanced Edition
> >> http://www.troubleshooters.com/mmm    
> >
> >I'd suggest that you file a bug/enhancement report at 
> >https://www.lyx.org/trac/wiki/BugTrackerHome (including the LyX
> >version you are using and exact steps to reproduce the problem).  
> 
> Like I said, I spent an hour getting that code just right. I did the
> hard part, I did my part. In the time you took to respond to me, you
> could have forwarded my email. 
> 
> I don't have time to learn the quirks of every project's bugtracker,
> type in information that's not relevant, and hope somebody looks at it.
> At a lot of projects, the bugtracker is where requests go to die
> (Bluefish, you listening?).
> 
> If I could change one thing about FOSS it would be to get rid of
> bugtrackers and work directly with the user. That's what we did at
> VimOutliner, and bugs got solved and requests got implemented very
> quickly.
> 
> SteveT
> 
> Steve Litt 
> March 2022 featured book: Making Mental Models: Advanced Edition
> http://www.troubleshooters.com/mmm

Steve, I am not the one to make the fix, but I think you are right.
It _IS_ very helpful to get bug-info together with a hint what seems to be missing.

As to the forwarding to developer-list, don't worry. They read the user-list too.

Thanks for the report.

	Kornel
-- 
lyx-devel mailing list
lyx-devel at lists.lyx.org
http://lists.lyx.org/mailman/listinfo/lyx-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 488 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://lists.lyx.org/pipermail/lyx-users/attachments/20220411/9730b5d7/attachment-0001.asc>


More information about the lyx-users mailing list