X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Finsets%2Finseturl.C;h=ae2c16a9fe1028ce8dfef62db6b4a6dfe2470875;hb=3c8aba3b556871fb1100a2f98cd93d5d4e3f70c9;hp=a8f69ee1eb121aad8479933fb8f90cd2084fe6ee;hpb=d0950acedaa91320340af398bb06d790486a2207;p=lyx.git diff --git a/src/insets/inseturl.C b/src/insets/inseturl.C index a8f69ee1eb..ae2c16a9fe 100644 --- a/src/insets/inseturl.C +++ b/src/insets/inseturl.C @@ -185,6 +185,16 @@ int InsetUrl::Latex(ostream & os, } +int InsetUrl::Ascii(ostream & os) const +{ + if (getOptions().empty()) + os << "[" << getContents() << "]"; + else + os << "[" << getContents() << "||" << getOptions() << "]"; + return 0; +} + + int InsetUrl::Linuxdoc(ostream & os) const { os << "<" << getCmdName()