Skip to content

Contract violation when using prefab struct datums w/linebreaks in racketblock  #356

Open

Description

@otherjoel

This program:

#lang scribble/manual

@racketblock[
  '#s(doc
   (1
    2
    3))]

Results in:

syntax-e: contract violation
  expected: syntax?
  given: #f

Compare this version, which does not produce any errors:

@racketblock[
 '#s(doc (1
          2
          3))]

I would expect that the first work as well as the second, since both forms are valid when used directly in racket/base.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions