Custom hints: optional text

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
kotlomoy
Member
Member
Posts: 100
Joined: 2008-03-09, 07:27 UTC

Custom hints: optional text

Post by *kotlomoy »

I use this custom hint (sorry for cyrillic):

Code: Select all

[=tc.DOS-имя]\nДата создания: [=tc.Дата создания.D.M.Y h:m:s]\nДата модификации: [=tc.Дата модификации.D.M.Y h:m:s]\nДата последнего доступа: [=tc.Дата последнего доступа.D.M.Y h:m:s]\n[=tc.Атрибуты (строка)]\n\n[=exeinfo.FileDescription]\n[=exeinfo.FileVersion]\n[=exeinfo.CompanyName]\n[=exeinfo.LegalCopyRight]\n[=exeinfo.ProductName]   [=exeinfo.ProductVersion]\n[=exeinfo.Comments]\n
Notice new line characters after each data field.

Hints look fine for files, which have info:

Image: http://s017.radikal.ru/i421/1402/98/96794a68db35.png

Hints look ugly for files, which have no info:

Image: http://s019.radikal.ru/i626/1402/d4/8062828a63ed.png

Question: Is there any way to not display new line characters after empty fields?
#213083 Single user license
BranchViewExtended
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I think you should try to define filemask for files that may have version info and display such fields only for that files.
User avatar
white
Power Member
Power Member
Posts: 6013
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Custom hints: optional text

Post by *white »

kotlomoy wrote:Question: Is there any way to not display new line characters after empty fields?
I don't think so. You can hide the preceding text (and following text) by using the following syntax:

Code: Select all

[="preceding text: "plugin.field"following text"]
Regretfully if you put \n inside the text, it's not interpreted as newline.
Post Reply