Commit cbe863c
let code_string return nothing if definition returns nothing (#92)
As suggested by @KristofferC in JuliaDocs/Documenter.jl#1779 (comment). This is related to problems using CodeTracking.jl with Documenter.jl (see JuliaDocs/Documenter.jl#1779) or Jupyter notebooks (see #51). Instead of throwing an exception, `code_string` now returns `nothing` if `definition` returns `nothing`. This makes it easier to handle such a problematic case by the user.
Co-authored-by: Kristoffer Carlsson <kristoffer.carlsson@juliacomputing.com>
Co-authored-by: Tim Holy <tim.holy@gmail.com>1 parent b2e5fae commit cbe863c
2 files changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
296 | 296 | | |
297 | 297 | | |
298 | 298 | | |
299 | | - | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
300 | 303 | | |
301 | 304 | | |
302 | 305 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
148 | 148 | | |
149 | 149 | | |
150 | 150 | | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
151 | 158 | | |
152 | 159 | | |
153 | 160 | | |
| |||
0 commit comments