nowrap_hyphen_sub: String formatting utility to substitute soft hyphens inside...

View source: R/utils-formatting.R

nowrap_hyphen_subR Documentation

String formatting utility to substitute soft hyphens inside compound words with non-breaking hard "long" hyphens using HTML character entity encoding

Description

For example, "co-publications" becomes "co‑publications"

Usage

nowrap_hyphen_sub(x)

Arguments

x

the string to modify

Examples

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

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