<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>17003</bug_id>
          
          <creation_ts>2008-09-03 15:01:30 +0400</creation_ts>
          <short_desc>some codes (&quot;.ft C&quot;) not for humans are left in displayed man-pages</short_desc>
          <delta_ts>2012-03-16 13:59:33 +0400</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>git</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ivan Zakharyaschev">imz</reporter>
          <assigned_to name="placeholder@altlinux.org">placeholder</assigned_to>
          <cc>evg</cc>
    
    <cc>glebfm</cc>
    
    <cc>ldv</cc>
    
    <cc>legion</cc>
    
    <cc>php-coder</cc>
    
    <cc>placeholder</cc>
    
    <cc>vsu</cc>
    
    <cc>vt</cc>
    
    <cc>wrar</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>76952</commentid>
    <comment_count>0</comment_count>
    <who name="Ivan Zakharyaschev">imz</who>
    <bug_when>2008-09-03 15:01:30 +0400</bug_when>
    <thetext>Things like &quot;.ft C&quot; appear in the displayed manpages, but they are not part of the content of the manpages, just some technical codes left there erroneously:

$ man git-fetch | fgrep -1 .ft

           .ft C
                   [url &quot;&lt;actual url base&gt;&quot;]
                           insteadOf = &lt;other url base&gt;
           .ft

--

           .ft C
                   [url &quot;git://git.host.xz/&quot;]
--
                           insteadOf = work:
           .ft

--

           .ft C
                   [remote &quot;&lt;name&gt;&quot;]
--
                           fetch = &lt;refspec&gt;
           .ft

--

           .ft C
                   URL: one of the above URL format
--

           .ft

--

           .ft C
                   &lt;url&gt;#&lt;head&gt;
           .ft

--

           .ft C
                   refs/heads/&lt;head&gt;:&lt;repository&gt;
           .ft

$ rpm -q man git-doc
man-1.6f-alt1
git-doc-1.5.6.5-alt2
$</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77064</commentid>
    <comment_count>1</comment_count>
    <who name="Alexey Gladkov">legion</who>
    <bug_when>2008-09-05 02:36:50 +0400</bug_when>
    <thetext>В коде этой страницы написано следующее:
\&amp;.ft C 
        [url &quot;git://git\&amp;.host\&amp;.xz/&quot;] 
                insteadOf = host\&amp;.xz:/path/to/ 
                insteadOf = work: 
\&amp;.ft

Цитирую groff(7):
\&amp;     Non-printable, zero-width glyph.

Именно он мешает исполнению .ft . Мне кажется это ошибка в этой странице.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77650</commentid>
    <comment_count>2</comment_count>
    <who name="Slava Semushin">php-coder</who>
    <bug_when>2008-09-12 16:42:04 +0400</bug_when>
    <thetext>Reassign</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77651</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-09-12 16:59:18 +0400</bug_when>
    <thetext>Это результат работы asciidoc.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79282</commentid>
    <comment_count>4</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2008-10-07 01:33:56 +0400</bug_when>
    <thetext>commit 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e
Author: Julian Phillips &lt;julian@quantumfyre.co.uk&gt;
Date:   Wed Jul 18 22:33:57 2007 +0100

    Force listingblocks to be monospaced in manpages

    For the html output we can use a stylesheet to make sure that the
    listingblocks are presented in a monospaced font.  For the manpages do
    it manually by inserting a &quot;.ft C&quot; before and &quot;.ft&quot; after the block in
    question.

    In order for these roff commands to get through to the manpage they
    have to be element encoded to prevent quoting.


commit 7f55cf451c9e7c35cad2efcd0bb7bbd7c7ae29ac
Author: Jonas Fonseca &lt;fonseca@diku.dk&gt;
Date:   Wed Nov 14 10:38:46 2007 +0100

    Documentation: Fix man page breakage with DocBook XSL v1.72

    From version 1.72 it will replace all dots in roff requests with U+2302
    (&quot;house&quot; character), and add escaping in output for all instances of dot
    that are not in roff requests. This caused the &quot;.ft&quot; hack forcing
    monospace font in listingblocks to end up as &quot;\&amp;.ft&quot; and being visible
    in the resulting man page.

    The fix adds a DOCBOOK_XSL_172 build variable that will disable the
    hack. To allow this variable to be defined in config.mak it also moves
    build variable handling below the inclusion of config.mak.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79924</commentid>
    <comment_count>5</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-10-21 02:29:46 +0400</bug_when>
    <thetext>(In reply to comment #4)
&gt; commit 281a53bb79786a6d7e54f9715cc8ad46fc2bdb0e

Same problem in git-core-1.6.0.2-alt1.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79928</commentid>
    <comment_count>6</comment_count>
    <who name="Andrey Rahmatullin">wrar</who>
    <bug_when>2008-10-21 08:10:39 +0400</bug_when>
    <thetext>Problem? It suggests to define DOCBOOK_XSL_172 during build, if we are using docbook-style-xsl &gt;= 1.72.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79941</commentid>
    <comment_count>7</comment_count>
    <who name="Dmitry V. Levin">ldv</who>
    <bug_when>2008-10-21 13:12:07 +0400</bug_when>
    <thetext>(In reply to comment #6)
&gt; Problem? It suggests to define DOCBOOK_XSL_172 during build, if we are using docbook-style-xsl &gt;= 1.72.

Thank you for the hint.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90943</commentid>
    <comment_count>8</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2009-05-07 17:27:49 +0400</bug_when>
    <thetext>*** Bug 19972 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90949</commentid>
    <comment_count>9</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2009-05-07 17:41:41 +0400</bug_when>
    <thetext>В Documentation/asciidoc.conf есть такое:

ifndef::docbook-xsl-172[]
# &quot;unbreak&quot; docbook-xsl v1.68 for manpages. v1.69 works with or without this.
# v1.72 breaks with this because it replaces dots not in roff requests.
[listingblock]
&lt;example&gt;&lt;title&gt;{title}&lt;/title&gt;
&lt;literallayout&gt;
ifdef::doctype-manpage[]
&amp;#10;.ft C&amp;#10;
endif::doctype-manpage[]
|
ifdef::doctype-manpage[]
&amp;#10;.ft&amp;#10;
endif::doctype-manpage[]
&lt;/literallayout&gt;
{title#}&lt;/example&gt;
endif::docbook-xsl-172[]

Для dockbook-styles-xsl 1.73+, думаю, это уже неактуально, потому как man получается нормальный (см. напр. man -t и получившийся постскрипт, моноспейсом на сером фоне).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90953</commentid>
    <comment_count>10</comment_count>
    <who name="Sir Raorn">raorn</who>
    <bug_when>2009-05-07 17:51:10 +0400</bug_when>
    <thetext>В новом git это чинится опцией ASCIIDOC_NO_ROFF.

http://git.kernel.org/?p=git/git.git;a=commitdiff;h=8fa2b45f</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>91251</commentid>
    <comment_count>11</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2009-05-15 17:42:22 +0400</bug_when>
    <thetext>git-1.6.3.1-alt1 -&gt; sisyphus:

* Thu May 14 2009 Dmitry V. Levin &lt;ldv@altlinux&gt; 1.6.3.1-alt1

- Updated to maint v1.6.3.1.
- Fixed build of documentation with fresh asciidoc and docbook xsl (closes: #17003).</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>