# How to programmatically generate a newline using scribble-slideshow?

**URL:** <https://racket.discourse.group/t/how-to-programmatically-generate-a-newline-using-scribble-slideshow/1869>\
**Category:** Questions & Answers\
**Tags:** scribble\
**Created:** [April 15, 2023, 10:55pm UTC](https://racket.discourse.group/t/how-to-programmatically-generate-a-newline-using-scribble-slideshow/1869 "2023-04-15T22:55:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![janus](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/janus/32/1115_2.png) [@janus](https://racket.discourse.group/u/janus)\
**Post date:** [April 15, 2023, 10:55pm UTC](https://racket.discourse.group/t/how-to-programmatically-generate-a-newline-using-scribble-slideshow/1869/1 "2023-04-15T22:55:31Z")

</div>

I am generating code listings in Scribble that I highlight myself. Example: [todo list](https://janus.srht.site/docs/todolist.html)

I have been using `(make-element 'newline '())` to generate newlines which work when rendered to HTML, but when shown in `slideshow`, they don't appear.

E.g. I'd expect the `a` and `b` to be separated by a line break in the following snippet, but they are not.

```scheme
#lang scribble-slideshow
@(require scribble/core scribble/base scribble/manual)

@title{Demo}

@(list "a" (make-element 'newline '()) "b")

```

If I change to `#lang scribble/manual`, the line break is shown as expected:

[![Rendered to HTML](https://global.discourse-cdn.com/free1/uploads/racket/original/2X/b/bd7f20ecb40e7d09ee69e02448347dae30256f4a.png)](https://i.stack.imgur.com/jk3H6.png)

How can I get generated line breaks to work in `scribble-slideshow`?
