DiscussionsIssue archiveOCCT:Documentation

Archived issue #0027018

Documentation - blockquotes are incorrectly formatted in PDF

Open CASCADEOCCT:Documentationclosed11 public notes

Search issues

Description

Doxygen support insertion of text block as blockquotes, with the following format:

> Text...
>
> Another paragraph...

These blockquotes are rendered correctly in HTML output, but are formatted incorrectly in PDF:

a) First line in the paragraph has indentation -- this breaks layout
b) Empty lines get lost (seem to be interpreted as separation of paragraphs)

See attached document, example at page 7

Steps to reproduce

gendoc.bat -overview -pdf -ug=dev_guides/contribution_workflow/contribution_workflow.md

Public activity

11 archived notes

Participants are labeled by their role within this record.

01Commenter 2
Branch [archived branch] has been created by Participant.

[revision removed]


Detailed log of new commits:

Author: ski
Date: Thu Dec 15 12:44:36 2016 +0300

    0027018: Documentation - blockquotes are incorrectly formatted in PDF
    
    Corrected block quotes in documentation for correct format in PDF files.
02Commenter 2
I have checked Doxygen documentation and it seems that we should use ">" character instead "> " for empty lines in text block formatted as blockquotes, because "> " means the end of current blockquotes item:

"Note that doxygen requires that you put a space after the (last) > character to avoid false positives, i.e. when writing" (see https://www.stack.nl/~dimitri/doxygen/manual/markdown.html#md_blockquotes)

Attached images show the difference between ">" and "> " cases.
03Commenter 3
Dear ysn,

please review.
04Commenter 4
Yes, this is the solution.

There seems to be no difference between the branch and the current master, so no integration is required.
05Commenter 5
Dear Commenter 1,

please close the issue.
06Commenter 6
There IS the difference: exactly a space removed after ">" in Contribution Workflow document. Apart of this fix, please also:

- Make sure that Documentation guide describes how to add blockquotes properly, taking into account that issue

- Check for possible other cases of incorrectly formatted blockquotes across the doc
07Commenter 7
Fixed in branch CR27018_1.
AFAIK, we don't use block-quotes anywhere except for coding rules.
08Commenter 2
Branch [archived branch] has been created by Author.

[revision removed]


Detailed log of new commits:

Author: ysn
Date: Mon Aug 21 13:08:27 2017 +0300

    0027018: Documentation - blockquotes are incorrectly formatted in PDF
    
    Trailing space is removed after ">" to avoid breaking the quote block in PDF output.
    
    A section about quotes are added in the documentation guide.
09Commenter 9
Please integrate branch CR27018_1; no testing is needed
10Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]
11Commenter 2
Branch [archived branch] has been deleted by Commenter 3.

[revision removed]