<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Recent changes to 17: Fake soft wrap to support fancy line wrapping options</title><link>https://sourceforge.net/p/vim-tohtml/issues/17/</link><description>Recent changes to 17: Fake soft wrap to support fancy line wrapping options</description><atom:link href="https://sourceforge.net/p/vim-tohtml/issues/17/feed.rss" rel="self"/><language>en</language><lastBuildDate>Mon, 18 Sep 2023 03:24:57 -0000</lastBuildDate><atom:link href="https://sourceforge.net/p/vim-tohtml/issues/17/feed.rss" rel="self" type="application/rss+xml"/><item><title>Ticket #17: Fake soft wrap to support fancy line wrapping options discussion</title><link>https://sourceforge.net/p/vim-tohtml/issues/17/?limit=25#0dc5</link><description>&lt;div class="markdown_content"&gt;&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;labels&lt;/strong&gt;: minor, proposal --&amp;gt; feature&lt;/li&gt;
&lt;li&gt;Description has changed:&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Diff:&lt;/p&gt;
&lt;div class="codehilite"&gt;&lt;pre&gt;&lt;span&gt;&lt;/span&gt;&lt;code&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;

&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;Milestone&lt;/strong&gt;:  --&amp;gt; &lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">fritzophrenic</dc:creator><pubDate>Mon, 18 Sep 2023 03:24:57 -0000</pubDate><guid>https://sourceforge.net67d62e97aaffe472ecb3dd24e2f5110b3e86e2a2</guid></item><item><title>Fake soft wrap to support fancy line wrapping options</title><link>https://sourceforge.net/p/vim-tohtml/issues/17/</link><description>&lt;div class="markdown_content"&gt;&lt;p&gt;&lt;em&gt;Originally created by:&lt;/em&gt; &lt;a class="" href="https://github.com/fritzophrenic" rel="nofollow"&gt;fritzophrenic&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;&lt;a class="" href="https://bitbucket.org/fritzophrenic/vim-tohtml/issue/17" rel="nofollow"&gt;Original report&lt;/a&gt; by Ben Fritz (Bitbucket: &lt;a class="" href="https://bitbucket.org/fritzophrenic%20NA" rel="nofollow"&gt;fritzophrenic NA&lt;/a&gt;, ).&lt;/strong&gt;&lt;/p&gt;
&lt;hr/&gt;
&lt;p&gt;Setting 'wrap' in Vim can be (mostly) simulated in the TOhtml output using the g:html_pre_wrap option.&lt;/p&gt;
&lt;p&gt;But this doesn't reflect the setting of 'breakindent', nor can it simulate 'nolinebreak' and 'breakat', nor does it attempt to simulate the 'showbreak' option.&lt;/p&gt;
&lt;p&gt;Inspiration from "Bryce Orgill": &lt;a href="https://groups.google.com/d/topic/vim_use/0eRfPISDhW8/discussion" rel="nofollow"&gt;https://groups.google.com/d/topic/vim_use/0eRfPISDhW8/discussion&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;Enhancement idea: simulate the wrapping by inserting linebreaks and spaces wherever Vim does this visually. Introduce new g:html_fake_wrap option or similar to manage whether real wrapping via pre_wrap or fake wrapping like this is used. Check the Vim tests of the 'wrap' and 'breakindent' options to see how Vim test suites are able to access what is actually displayed.&lt;/p&gt;
&lt;p&gt;Unless recent HTML/CSS developments make even this craziness possible without inserting extra text...&lt;/p&gt;&lt;/div&gt;</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Anonymous</dc:creator><pubDate>Wed, 24 Oct 2018 22:08:07 -0000</pubDate><guid>https://sourceforge.netab48e29be65394fbfbc1a4205446485afbdfbc0e</guid></item></channel></rss>