我遇到了 pod2usage 缺少文本的问题,我尝试通过以下方式修复它:
- 转换换行符
- 重写它
- 用 podchecker 检查它
但这些都无助于解决或暗示我的问题
podchecker 的输出:
YaTC.pod pod syntax OK.
完整的吊舱:
Pod2text 输出:
剪断
Bool: Use special characters
If Nth = 0, this is the left arrow
Data: ISO Language Code:
* Missing data *
<http://www.w3schools.com/tags/ref_language_codes.asp?output=print>
<http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes>
Data: Main size:
* Missing data *
Maximum size limit, where Nth = 0 if X axis
Data: Minimum size:
剪断
信息:
我的操作系统是 OpenSuSE 11.4 Linux 2.6.37.6-0.7-default i686 i686 i386,GNU/Linux
我的编辑器是 SciTE 版本 1.77
此外 ,POD 嵌入在 Perl 代码中,通过以下代码调用 pod2text:
if ( !$conf{'Bool_Use_plain_text_for_help'} ) {
my $help = $helpframe->PodText(
-scrollbars => '',
-file => $0,
-wrap => 'word',
-background => 'white',
-width => 150,
-height => 500
)->pack( -side => 'top', -fill => 'both', -expand => 1 );
}
else {
my $help = $helpframe->Text(
-wrap => 'word',
-background => 'white',
-width => 150,
-height => 500
)->pack( -side => 'top', -fill => 'both', -expand => 1 );
$help->insert( 'end', qx{pod2text '$0'} );
}
Pod2text 版本: 未知(不在man
, info
,help
或中pod2text --help
)
终端信息:
TERM=xterm
COLORTERM=1
编辑: 这个错误似乎源于 Tk::Text,我在控制台中尝试了 pod2html,看起来还可以,但是在 Tk 中它缺少文本