nowrap_html: String formatting utility to avoid wrapping of hyphens inside...

View source: R/utils-formatting.R

nowrap_htmlR Documentation

String formatting utility to avoid wrapping of hyphens inside compound words while retaining search in HTML content using Ctrl-F.

Description

For example, if "co-publications" should be possible to find on a HTML page using Ctrl-F, a non-breaking hyphen (longer dash) HTML entity might not be ideal.

Usage

nowrap_html(x)

Arguments

x

the string to modify

Details

Wrapping the string "co-publication" in a span with the CSS style 'white-space:nowrap;' might be more convenient for the end user.

Examples

nowrap_html("Swedish non-university co-publications")

KTH-Library/bibliomatrix documentation built on Feb. 29, 2024, 5:54 a.m.