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 example_out.html
Set whitelist tags:
$ fake-keepall example.html example_out.html --tags 'p,li'
Use custom CSS class:
$ fake-keepall example.html 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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fake-keepall-0.1.2.tar.gz.
File metadata
- Download URL: fake-keepall-0.1.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-42-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b972b1f1f26ef5b02d70a3eef6f4661f4b4a363117385ff442027732a6c4b4e4
|
|
| MD5 |
158cbdd7aff23a10d4faed99af31147a
|
|
| BLAKE2b-256 |
344db374feeab28cf01af305a4ba5bc0f9b876236fb7685bc7f2d19602e20c54
|
File details
Details for the file fake_keepall-0.1.2-py3-none-any.whl.
File metadata
- Download URL: fake_keepall-0.1.2-py3-none-any.whl
- Upload date:
- Size: 3.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.0.10 CPython/3.8.5 Linux/5.4.0-42-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6caa100a26decb127a74f4c7124579bdf0d34ba0781bec8691456df7bda66381
|
|
| MD5 |
7bb684f001fe158115c6d06e48fb3cf1
|
|
| BLAKE2b-256 |
eaa4c6929f25d600a275b47bdd17216bfbcf1dc8bc4611b148f51adca54f9ded
|