racket / scribble

Other
201 stars 93 forks source link

Error if @defmodule[x] is the last thing in a file #146

Closed samth closed 7 years ago

samth commented 7 years ago

This program

#lang scribble/manual

@defmodule[x]

(with no newline at the end of file)

produces this error:

make-paragraph: contract violation
  expected: content?
  given: (list (part-tag-decl '(mod-path "x")))
  in: the 2nd argument of
      (-> style? content? paragraph?)
  contract from: 
      <pkgs>/scribble-lib/scribble/core.rkt
  blaming: <pkgs>/scribble-lib/scribble/decode.rkt
   (assuming the contract is correct)
  at: <pkgs>/scribble-lib/scribble/core.rkt:222.2

When run with raco scribble --html x.scrbl

Any text after the @defmodule or a {} argument to @defmodule causes it to work.

samth commented 7 years ago

cc @florence since his presentation uncovered this error