# Articles in scribble

**URL:** <https://racket.discourse.group/t/articles-in-scribble/1970>\
**Category:** Questions & Answers\
**Created:** [May 30, 2023, 6:40pm UTC](https://racket.discourse.group/t/articles-in-scribble/1970 "2023-05-30T18:40:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joskoot](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/joskoot/32/1964_2.png) [@joskoot](https://racket.discourse.group/u/joskoot)\
**Post date:** [May 30, 2023, 6:40pm UTC](https://racket.discourse.group/t/articles-in-scribble/1970/1 "2023-05-30T18:40:55Z")

</div>

Scribble may render an article at the end of a line (depending of the width of the window),  
but in my taste this is ugly. I prefer

This is  
an article.

Over

This is an  
article

Is there tool that automatically converts

This an article

to

This is @nonbreaking{an article}

???

---

<div class="post-metadata">

**Author:** ![joeld](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/joeld/32/38_2.png) [@joeld](https://racket.discourse.group/u/joeld)\
**Post date:** [May 30, 2023, 10:11pm UTC](https://racket.discourse.group/t/articles-in-scribble/1970/2 "2023-05-30T22:11:24Z")

</div>

There is no rule or convention about not having a linebreak after a/an, and hence likely no one has yet made such a facility for Scribble to follow such a rule.

The `pollen/unstable/typography` module does have [an undocumented function `nonbreaking-last-space`](https://git.matthewbutterick.com/mbutterick/pollen/src/commit/c182a30f57ea5096440aea3d097f5fe3b78bb236/pollen/unstable/typography.rkt#L146) which attempts to implement [widow/orphan control](https://practicaltypography.com/widow-and-orphan-control.html) by inserting a non-breaking space between the last two words in an X-expression, while being smart about boundaries between contained X-expressions.

I don’t think this function is fully cooked, but it could serve as the basis for something similar in Scribble.

---

<div class="post-metadata">

**Author:** ![sschwarzer](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/sschwarzer/32/1940_2.png) [@sschwarzer](https://racket.discourse.group/u/sschwarzer)\
**Post date:** [May 31, 2023, 7:46am UTC](https://racket.discourse.group/t/articles-in-scribble/1970/3 "2023-05-31T07:46:12Z")

</div>

I think it's important that such a tool is in some way explicit (like the Pollen function seems to be). _Always_ having a non-breaking space between the last two words of a sentence may be unwanted in narrow columns, e.g. in margin notes or tables.
