IUBLibTech / newton_chymistry

New version of 'The Chymistry of Isaac Newton', using XProc pipelines to generate a website based on TEI XML encodings of Newton's alchemical manuscripts, and Apache Solr as a search engine.
2 stars 0 forks source link

Adding <p rend="flush"> rendering, which was able in P4 #107

Closed tubesoft closed 3 years ago

tubesoft commented 3 years ago

I realized that sometimes we might need <p rend="flush"> to supress the indentation of the first line of a paragraph.

Also, <p> tag also renders margins on the top and bottom of the paragraph. Sometimes we also don't need them. I am now going to make <p rend="flush-all"> for that.

I am adding some code at tei.css like this:

.tei-p {
    margin-top: 1em;
    margin-bottom: 1em;
    line-height: 1.5;
    white-space: normal;
    text-indent: 1.5em;
}

.tei-p.rend-flush {
    text-indent: 0em
}

.tei-p.rend-flush-all {
    margin-top: 0em;
    margin-bottom: 0em;
    text-indent: 0em
}

I am making a note here for the future review.

wehooper commented 3 years ago

This feature is working.