robots: ensure trailing and leading whitespaces are preserved

This commit is contained in:
Girish Ramakrishnan
2020-10-05 21:31:10 -07:00
parent 589f19f370
commit 2fe86f9b8a

View File

@@ -928,7 +928,7 @@
<fieldset>
<div class="form-group">
<label class="control-label" style="width: 100%">Robots.txt <sup><a ng-href="https://docs.cloudron.io/apps/#robotstxt" class="help" target="_blank"><i class="fa fa-question-circle"></i></a></sup> <a href="" class="pull-right" style="font-weight: normal;" ng-click="security.robotsTxt = ROBOTS_DISABLE_INDEXING_TEMPLATE">Disable indexing</a></label>
<textarea ng-model="security.robotsTxt" placeholder="Leave empty to allow all bots to index this app" class="form-control" rows="4"></textarea>
<textarea ng-trim="false" style="white-space: pre-wrap" ng-model="security.robotsTxt" placeholder="Leave empty to allow all bots to index this app" class="form-control" rows="4"></textarea>
</div>
<div class="form-group">