bugGNU Astronomy Utilities - Bugs: bug #49188, Paragraph indentation in book's...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #49188: Paragraph indentation in book's webpage

Submitter:  Mohammad Akhlaghi <makhlaghi>
Submitted:  Mon 26 Sep 2016 09:38:16 AM UTC
   
 
Category:  Webpage Severity:  3 - Normal
Item Group:  Documentation Status:  Postponed
Privacy:  Public Assigned to:  None
Open/Closed:  Open

Mon 03 Oct 2016 11:33:15 PM UTC, comment #1: 

A dirty fix has been pushed to the main repo and also uploaded to the server. When there isn't more than 10 non-paragraphs between the first paragraph and header, this works fine, but if there are more than this arbitrary number, there will be problems again. See the commit message for a discussion.

Since this is just a temporary solution, I am not marking this bug as fixed.

Mohammad Akhlaghi <makhlaghi>
Group administrator
Mon 26 Sep 2016 09:38:16 AM UTC, original submission:  

The current CSS style sheet for the book defines paragraph indentation as follows:


p{
    margin-top: 0;
    text-indent: 0;
    line-height: 1.3;
    margin-bottom: 0.2em;
}

/* Paragraphs that follow other paragraphs should be indented.*/
p+p, p+*+p {
    text-indent: 1em;
}


To make/check it, I mainly used the single HTML per node as a reference and the single HTML vesion also seemed fine. However, there was a problem:

  • When there are multiple other tags between two paragraphs, indentation will not work. For example this page. If you look in the source you will see multiple tags (for the index) between the first and second paragraph.


  • The case above has created the apparent success of this rule for multi-section pages, like the single HTML version: the fact that the first paragraphs of each section is not indented is because there is more than one tag between it and the previous tag.


We should set it to the opposite: by default there should be indentation, and when a paragraph falls below a header (with any number of elements between the header and the paragraph), there should be no indentation. The `*' will choose ONLY ONE of any type of tag. I am still searching to find how we can tell CSS to use any number of any type of tag, but I don't have much time now, so I am postponing it. If you know the solution, please comment here, thanks in advance ;-).

Mohammad Akhlaghi <makhlaghi>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by makhlaghi (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

     

    No changes have been made to this item

    Back to the top

    Powered by Savane 3.13-4448.
    Corresponding source code