Skip to content

Commit 53ed4ff

Browse files
committed
Removd whitespaces.
1 parent 93a120f commit 53ed4ff

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

helpers/project_helpers.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ def get_project_sector_graph_datav2(projectId)
10781078
projectSectorGraph['sector_code'].each_with_index do |data, index|
10791079
if counter <=10
10801080
begin
1081-
narrative = projectSectorGraph['sector_narrative'][index]
1081+
narrative = projectSectorGraph['sector_narrative'][index].strip
10821082
percentage = projectSectorGraph['sector_percentage'][index]
10831083
rescue
10841084
narrative = 'N/A'
@@ -1100,7 +1100,7 @@ def get_project_sector_graph_datav2(projectId)
11001100
c3ReadyStackBarData[1] = '['
11011101
projectSectorGraph['sector_code'].each_with_index do |data, index|
11021102
begin
1103-
narrative = begin projectSectorGraph['sector_narrative'][index] rescue data end
1103+
narrative = begin projectSectorGraph['sector_narrative'][index].strip rescue data end
11041104
percentage = begin projectSectorGraph['sector_percentage'][index] rescue 100 end
11051105
rescue
11061106
narrative = 'N/A'

views/projects/summary.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@
116116
<script type="text/javascript">
117117
var mapType = "project";
118118
window.mainMarkers = <%= mapMarkers.to_json%>;
119-
var ProjectTitle = "<%= project['title_narrative_text'].first %>";
119+
var ProjectTitle = "<%= project['title_narrative_text'].first.strip %>";
120120
var countryCount = <%= countryOrRegion[:countriesCount]%>;
121121
var regionCount = <%= countryOrRegion[:regionsCount]%>;
122122
</script>

0 commit comments

Comments
 (0)