File: ann_multiline2.svg

package info (click to toggle)
rust-annotate-snippets 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 524 kB
  • sloc: makefile: 2
file content (37 lines) | stat: -rw-r--r-- 1,174 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<svg width="740px" height="164px" xmlns="http://www.w3.org/2000/svg">
  <style>
    .fg { fill: #AAAAAA }
    .bg { background: #000000 }
    .container {
      padding: 0 10px;
      line-height: 18px;
    }
    tspan {
      font: 14px SFMono-Regular, Consolas, Liberation Mono, Menlo, monospace;
      white-space: pre;
      line-height: 18px;
    }
  </style>

  <rect width="100%" height="100%" y="0" rx="4.5" class="bg" />

  <text xml:space="preserve" class="container fg">
    <tspan x="10px" y="28px"><tspan>error[E####]: spacing error found</tspan>
</tspan>
    <tspan x="10px" y="46px"><tspan>  --&gt; foo.txt:26:12</tspan>
</tspan>
    <tspan x="10px" y="64px"><tspan>   |</tspan>
</tspan>
    <tspan x="10px" y="82px"><tspan>26 | This is an example</tspan>
</tspan>
    <tspan x="10px" y="100px"><tspan>   |            ^^^^^^^ this should not be on separate lines</tspan>
</tspan>
    <tspan x="10px" y="118px"><tspan>27 | of an edge case of an annotation overflowing</tspan>
</tspan>
    <tspan x="10px" y="136px"><tspan>28 | to exactly one character on next line.</tspan>
</tspan>
    <tspan x="10px" y="154px"><tspan>   |</tspan>
</tspan>
  </text>

</svg>