Skip to main content

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

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 details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

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

Hashes for fake-keepall-0.1.2.tar.gz
Algorithm Hash digest
SHA256 b972b1f1f26ef5b02d70a3eef6f4661f4b4a363117385ff442027732a6c4b4e4
MD5 158cbdd7aff23a10d4faed99af31147a
BLAKE2b-256 344db374feeab28cf01af305a4ba5bc0f9b876236fb7685bc7f2d19602e20c54

See more details on using hashes here.

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

Hashes for fake_keepall-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 6caa100a26decb127a74f4c7124579bdf0d34ba0781bec8691456df7bda66381
MD5 7bb684f001fe158115c6d06e48fb3cf1
BLAKE2b-256 eaa4c6929f25d600a275b47bdd17216bfbcf1dc8bc4611b148f51adca54f9ded

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 files

0.1.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page