Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
tubesoft opened this issue Apr 20, 2021 · 1 comment
Closed

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

tubesoft opened this issue Apr 20, 2021 · 1 comment
Labels
awaiting signoff Fix has been attempted and needs confirmation that it's done rendering Rendering of TEI markup

Comments

@tubesoft
Copy link
Collaborator

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.

@tubesoft tubesoft added rendering Rendering of TEI markup awaiting signoff Fix has been attempted and needs confirmation that it's done labels Apr 20, 2021
tubesoft pushed a commit that referenced this issue May 25, 2021
@wehooper
Copy link
Collaborator

wehooper commented Jun 3, 2021

This feature is working.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting signoff Fix has been attempted and needs confirmation that it's done rendering Rendering of TEI markup
Projects
None yet
Development

No branches or pull requests

2 participants