replace_duplicate_punctuation: Replace Duplicate Punctuation

View source: R/working_paper.R

replace_duplicate_punctuationR Documentation

Replace Duplicate Punctuation

Description

In some cases, CSL bibliographies may allow redundant punctuation. For example, when an item's title ends in a question mark, this will frequently result in the title ending in a "?." which looks ugly. This function searchs the bibliography for such duplicates and, when found, removes the second punctuation.

Usage

replace_duplicate_punctuation(x)

Arguments

x

Character scalar that contains all the text in the intermediate markdown file

Value

Character scalar with the duplicate punctuation removed


kbrevoort/kpbtemplates documentation built on May 31, 2024, 12:29 p.m.