pressbooks-book
pressbooks-book copied to clipboard
Export formats: Paragraphs in textboxes with class="hanging-indent" display incorrectly
Prerequisites
- [x] Can you reproduce the behavior you wish to address with all plugins except Pressbooks deactivated?
- [ ] Are you running the latest version of Pressbooks, the latest version of McLuhan, and the latest version of WordPress? - No, BCcampus is behind
- [x] Are you experiencing the issue while using this book theme?
- [x] Did you perform a cursory search to see if your bug or enhancement is already listed?
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
- Create a textbox.
- Add a few paragraphs to the textbox.
- Apply "Hanging indent" to all paragraphs.
- Export chapter as PDF, MOBI, EPUB.
Expected behavior:
I expect the appearance of hanging indents to match the webbook:
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:
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
@dannylonglegs Can you check this out? Thanks for the report, @josieg!
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".