pressbooks / pressbooks-book

McLuhan is the default book theme for Pressbooks.
https://pressbooks.org
GNU General Public License v3.0
20 stars 16 forks source link

Export formats: Paragraphs in textboxes with class="hanging-indent" display incorrectly #405

Open josieg opened 5 years ago

josieg commented 5 years ago

Prerequisites

Description

Paragraphs inside textboxes (except for the first) that have class="hanging-indent" do not display correctly in PDF exports, EPUB, and MOBI files. The webbook is okay.

Steps to Reproduce

  1. Create a textbox.
  2. Add a few paragraphs to the textbox.
  3. Apply "Hanging indent" to all paragraphs.
  4. Export chapter as PDF, MOBI, EPUB.

Expected behavior: I expect the appearance of hanging indents to match the webbook: webbookhangingindent

Actual behavior: Here is a screenshot from the PDF file. All paragraphs in this screenshot have class="hanging-indent", but the second and third paragraphs inside the textbox are displaying incorrectly: pdfhangingindent

System Information

Book Info

Book ID: 500 Book URL: https://pressbooks.bccampus.ca/abookfortestingprod/ Book Privacy: Public

Browser

Platform: Windows Browser Name: Chrome Browser Version: 70.0.3538.110 User Agent String: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.110 Safari/537.36

WordPress Configuration

Network URL: http://pressbooks.bccampus.ca/ Network Type: Subdirectory Version: 4.9.8 Language: en_US WP_ENV: Not set WP_DEBUG: Enabled Memory Limit: 64M

Pressbooks Configuration

Version: 5.5.6 Book Theme: McLuhan Book Theme Version: 2.5.2 Root Theme: Aldine Root Theme Version: 1.5.0

Pressbooks Dependencies

Epubcheck: Installed Kindlegen: Installed xmllint: Installed PrinceXML: Installed Saxon-HE: Installed

Must-Use Plugins

hm-autoloader.php: n/a

Network Active Plugins

bcc new user notify: 0.0.1 BC Post-Secondary Validator: 1.0.2 CC Export for Pressbooks: 0.2.6 f5 Force SSL: 1.0.0 iThemes Security: 7.2.0 Openstax Import for Pressbooks: 1.3.1 Pressbooks: 5.5.6 Pressbooks Stats: 1.4.0 Textbooks for Pressbooks: 4.2.2 WP-Piwik: 1.0.19

Book Active Plugins

bcc new user notify: 0.0.1 BC Post-Secondary Validator: 1.0.2 CC Export for Pressbooks: 0.2.6 f5 Force SSL: 1.0.0 H5P: 1.11.3 iThemes Security: 7.2.0 Openstax Import for Pressbooks: 1.3.1 Pressbooks: 5.5.6 Pressbooks Stats: 1.4.0 Textbooks for Pressbooks: 4.2.2 WP-Piwik: 1.0.19 WP QuickLaTeX: 3.8.5

Inactive Plugins

Akismet Anti-Spam: 4.1 Candela Citation: 0.2.2 Hypothesis: 0.5.0 mPDF for Pressbooks: 3.2.3

Server Configuration

PHP Version: 7.1.25 MySQL Version: 5.5.5 Webserver Info: Apache

PHP Configuration

Safe Mode: Disabled Memory Limit: 512M Upload Max Size: 500M Post Max Size: 500M Upload Max Filesize: 500M Time Limit: 60 Max Input Vars: 1000 URL-aware fopen: On (1) Display Errors: N/A

PHP Extensions

OPcache: Disabled XDebug: Disabled cURL: Supported cURL Version: 7.19.7 imagick: Installed xsl: Installed

greatislander commented 5 years ago

@dannylonglegs Can you check this out? Thanks for the report, @josieg!

mcgratay commented 4 years ago

Confirmed reproducible, except that in themes tested (McLuhan and Malala) the first hanging indent would not format correctly either.

It's likely that all indentation formats are affected, since I'm seeing similar issues with the "No-indent." That would include paragraph classes "indent", "no-indent" and "hanging-indent".