Apply the fake `word-break: keep-all;` CSS property to static HTML file
Project description
Fake KeepAll
Apply the fake word-break: keep-all;
CSS property to static HTML file.
This is useful when using the HTML->PDF converter that does not support the word-break: keep-all;
CSS property.
How it works
Add the white-space: nowrap;
CSS property to every word to prevent line breaks.
Installation
$ pip install fake-keepall
Usage
$ fake-keepall example.html --out example_out.html
Set whitelist tags:
$ fake-keepall example.html --out example_out.html --tags 'p,li'
Use custom CSS class:
$ fake-keepall example.html --out example_out.html --class 'myclass'
Screenshot
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fake-keepall-0.1.1.tar.gz
(2.5 kB
view hashes)
Built Distribution
Close
Hashes for fake_keepall-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | fd0ddea5a50933f12a2e021cbc7a130538cdaa645709d36e6a6a1700130b34b6 |
|
MD5 | e2a1b8b22262684e4d7bf0fcbe83c280 |
|
BLAKE2b-256 | 3da9b69101386bf876159cb2fd83e71717283afdaaf7f103d177b940c8855983 |