[Vtigercrm-commits] [vtiger development] #7031: Document Notes Table layout problem
vtiger development
vtiger-tickets at trac.vtiger.com
Mon Feb 28 02:12:22 PST 2011
#7031: Document Notes Table layout problem
----------------------------------+-----------------------------------------
Reporter: jcrisp | Owner: developer
Type: defect | Status: new
Priority: unassigned | Milestone: Unassigned
Component: vtigercrm | Version: 5.2.1
Keywords: Document Notes Table |
----------------------------------+-----------------------------------------
This post with screen shots of the problem refers :
http://forums.vtiger.com/viewtopic.php?f=104&t=42466
If I create a new Note / Document, insert a table and then save and view
it, the table is dropped down by a large amount of the following :
<br>
(whitespace)
<br>
(whitespace)
<br>
(whitespace)
Seems that the area concerned is generated by
/Smarty/templates/DetailViewUi.tpl
{{{
<td width="100%" colspan="3" class="dvtCellInfo"
align="left">{$keyval|regex_replace:"/(^|[\n ])([\w]+?:\/\/.*?[^
\"\n\r\t<]*)/":"\\1<a href=\"\\2\"
target=\"_blank\">\\2</a>"|regex_replace:"/(^|[\n
])((www|ftp)\.[\w\-]+\.[\w\-.\~]+(?:\/[^ \"\t\n\r<]*)?)/":"\\1<a
href=\"http://\\2\" target=\"_blank\">\\2</a>"|regex_replace:"/(^|[\n
])([a-z0-9&\-_.]+?)@([\w\-]+\.([\w\-\.]+\.)*[\w]+)/i":"\\1<a
href=\"mailto:\\2@\\3\">\\2@\\3</a>"|regex_replace:"/,\"|\.\"|\)\"|\)\.\"|\.\)\"/":"\""|replace:"\n":"<br> "}
}}}
Removing the following part cures it :
{{{
replace:"\n":"<br> "
}}}
However, this code must be there for another purpose and I'm not sure what
other side effects its removal will have.
--
Ticket URL: <http://trac.vtiger.com/cgi-bin/trac.cgi/ticket/7031>
vtiger development <http://trac.vtiger.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list