Skip to main content

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

screenshot

Project details


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.2.tar.gz (2.5 kB view hashes)

Uploaded Source

Built Distribution

fake_keepall-0.1.2-py3-none-any.whl (3.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page