# Spurious lines in verbatim output

**URL:** <https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198>\
**Category:** Site Feedback\
**Created:** [January 8, 2019, 10:51am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198 "2019-01-08T10:51:21Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 8, 2019, 10:51am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/1 "2019-01-08T10:51:21Z")

</div>

hi there,

could someone figure out how to customize the email output to not inject spurious lines in “verbatim” copy-paste?  
_e.g._ when I received the mail associated to this post of mine – [How to convert root graphs into .dat format?](https://root-forum.cern.ch/t/how-to-convert-root-graphs-into-dat-format/32184/9) – I got an extra `\n` after each line of useful content, inside the verbatim snippet.

_ie:_  
when I copy-pasted this output:

```auto
line 1
line 2

```

from my terminal into the Discourse verbatim cell, it was correctly displayed inside the web view, but the email showed as:

```auto
line 1

line 2

```

that’s a bit annoying…

could this be fixed?

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 8, 2019, 11:09am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/2 "2019-01-08T11:09:25Z")

</div>

and here is how it shows up:

 ![post](https://root-forum.cern.ch/uploads/default/original/3X/7/a/7a349b0f40dee37dedad39f21bb70805f7c2c562.png)

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 16, 2019, 10:49pm UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/3 "2019-01-16T22:49:18Z")

</div>

am I the only one seeing this?

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 17, 2019, 8:12am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/4 "2019-01-17T08:12:09Z")

</div>

I have never encountered problems copying and pasting code in discourse…  
And I do this quite often … 🙂

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 17, 2019, 8:29am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/5 "2019-01-17T08:29:46Z")

</div>

how is the following being displayed in your mailer?

```auto
line1
line2

```

---

<div class="post-metadata">

**Author:** ![couet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/couet/32/12037_2.png) [@couet](https://root-forum.cern.ch/u/couet)\
**Post date:** [January 17, 2019, 8:38am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/6 "2019-01-17T08:38:19Z")

</div>

> [@sbinet](#):
>
> how is the following being displayed in your mailer?

The same as in discourse:

![37](https://root-forum.cern.ch/uploads/default/original/3X/5/3/5357f48518c1a0b25e5a31c6720321387e0a8b32.png)

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 17, 2019, 8:56am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/7 "2019-01-17T08:56:07Z")

</div>

hum… me too.  
but they weren’t actually copy-pasted (I manually typed them…)

bear with me…

### copy-pasted from my favorite browser

```auto
$> root-ls -t /home/binet/Downloads/g4beamline.root 
=== [/home/binet/Downloads/g4beamline.root] ===
version: 61406
TDirectoryFile VirtualDetector VirtualDetector (cycle=1)
    TNtuple Det1 VirtualDetector/Det1 (entries=1000)

```

### copy-pasted from my favorite terminal

```auto
#---Set name of the project to "ROOT". Has to be done after check of cmake version--------------
project(ROOT)
set(IntegratedBuild ON)

#---Set the locale to default C to prevent issued due to localization of commands---------------
# This is necessary as we for example call `clang -v` and parse its output. But on a localized
# program, the output parsing is much more error prone as certrain strings we're looking for
# could be missing or be in a different order. To prevent those errors, let's just force all
# output to use the default C locale which is more or less identical on all systems.
set(ENV{LANG} C)

```

---

<div class="post-metadata">

**Author:** ![bellenot](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/bellenot/32/29217_2.png) [@bellenot](https://root-forum.cern.ch/u/bellenot)\
**Post date:** [January 17, 2019, 9:11am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/8 "2019-01-17T09:11:33Z")

</div>

Sorry, but I’m afraid there is nothing we can do here, or at least I didn’t find any option related to that issue…

---

<div class="post-metadata">

**Author:** ![sbinet](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/sbinet/32/13166_2.png) [@sbinet](https://root-forum.cern.ch/u/sbinet)\
**Post date:** [January 17, 2019, 10:18am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/9 "2019-01-17T10:18:42Z")

</div>

ok.

just to note: I don’t seem to be the only one whose copy-paste renders funny.

see this recent post from @eguiraud:

> [@Using RNode in RDataFrame](https://root-forum.cern.ch/t/using-rnode-in-rdataframe/32320/4):
>
> Hi, note that there is no more recent release of ROOT (for now: v6.16 is coming soon, with all the RNode goodness). But you can get a nightly build of ROOT master branch from the LCG releases on cmvs, if it’s available on your cluster: source /cvmfs/sft-nightlies.cern.ch/lcg/views/dev3/latest/x86\_64-slc6-gcc7-opt/setup.sh – they are kind of stable, ok to use most of the time. Otherwise, depending on what you actually need to do with RNode, you can use a template function instead. With C++14 a…

it renders correctly on the forum but looks funny in my mailer:

 ![rdataframe](https://root-forum.cern.ch/uploads/default/original/3X/9/7/9731b9cc686051a85feb9f456760a42998a6ba31.png)

---

<div class="post-metadata">

**Author:** ![system](https://root-forum.cern.ch/uploads/default/original/3X/e/f/efe4f24398fd8ffeb76bccb6ecc46d9d9c003376.png) [@system](https://root-forum.cern.ch/u/system)\
**Post date:** [January 31, 2019, 10:18am UTC](https://root-forum.cern.ch/t/spurious-lines-in-verbatim-output/32198/10 "2019-01-31T10:18:43Z")

</div>

Closed on January 31, 2019, 10:18am UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
