Making first paragraphs not indented in exported HTML

Steve Litt slitt at troubleshooters.com
Mon Apr 11 07:22:16 UTC 2022


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


More information about the lyx-users mailing list