<NME> working.md
<BEF> This source file contains a working doctest:

```jldoctest
julia> 2 + 2
4
```

Test comments or comment-like lines:

```jldoctest
julia> f(x) = println("# output from f\n$x");

julia> f(42)
# output from f
42

julia> f(42)
       # comment line
# output from f
42
```

```jldoctest
julia> let x = 1
           println("$x")
           # comment
           println("$x")
       end
1
1

julia> println("xyz")
       # comment
xyz
```

Original issue:

```@meta
DocTestSetup = quote
    methods(args...) = Text("""
    # 1 method for generic function "f":
    [1] f() in Main at none:1
    """)
end
```
```jldoctest
julia> f()=0
f (generic function with 1 method)

julia> methods(f)
# .. should be ignored.
julia> 2 + 2
4
```
# .. should be ignored.
julia> 2 + 2
4
```

Empty output:

```jldoctest
nothing
# output
```

<MSG> Fix crash in case of empty `# output` (#1510)


<DFF> @@ -52,4 +52,11 @@ Comments at the start:
 # .. should be ignored.
 julia> 2 + 2
 4
-```
\ No newline at end of file
+```
+
+Empty output:
+
+```jldoctest
+nothing
+# output
+```

Fix crash in case of empty `# output` (#1510)