0
Prevent DW from adding spaces in php snippet
New Here
,
/t5/dreamweaver-discussions/prevent-dw-from-adding-spaces-in-php-snippet/td-p/9569114
Dec 22, 2017
Dec 22, 2017
Copy link to clipboard
Copied
For some reason DW 2017, ads spaces around double quotes:
Before Applying Source Code Format:
<a href="<?php echo Url("blog/");?>" class="text"> Blog</a>
and after:
<a href="<?php echo Url(" blog/ ");?>" class="text">Blog</a>
notice the extra white space within url function.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Community Expert
,
LATEST
/t5/dreamweaver-discussions/prevent-dw-from-adding-spaces-in-php-snippet/m-p/9569115#M32211
Dec 22, 2017
Dec 22, 2017
Copy link to clipboard
Copied
yes it's a kind of bug... but it is because the core hosting format is HTML... and you have 'sort' of nested double quoted (path string inside the attribute value)... replace the URL quoting by a simple quote, and that wont generate extra space
<a href="<?php echo Url('blog/');?>" class="text"> Blog</a>
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

