<commit_before><link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-icon/iron-icon.html">
<link rel="import" href="../iron-icons/maps-icons.html">
<link rel="import" href="../paper-item/paper-icon-item.html">
<link rel="import" href="../paper-item/paper-item-body.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="paper-contact-behavior.html">
<link rel="import" href="paper-contact-shared-styles.html">

<dom-module id="paper-contact-address">

	<template>
	
		<style include="paper-contact-shared-styles"></style>

		<paper-icon-item class='item' on-tap='openInBlankTab'>
			<paper-ripple fit></paper-ripple>
			<iron-icon class='icon' icon='maps:place' item-icon></iron-icon>
			<paper-item-body class='text' three-line><content></content></paper-item-body>
		</paper-icon-item>
	</template>
</dom-module>

<script>

(function() {

	Polymer({
		is: 'paper-contact-address',
		properties: {
			latitude: Number,
			longitude: Number
		},
		
	    behaviors: [
   			Polymer.PaperContactBehavior
   	    ],

		// Private methods
		getTargetUrl: function(content) {
			encodedAddress = encodeURIComponent(content);
			return 'https://www.google.com/maps/search/' + encodedAddress + '/@' + this.latitude + '+' + this.longitude;
		}
	});

})();
<commit_msg>Bugfix: On Mobile Safari the address item contains empty lines/spaces before the text<commit_after><link rel="import" href="../polymer/polymer.html">
<link rel="import" href="../iron-icon/iron-icon.html">
<link rel="import" href="../iron-icons/maps-icons.html">
<link rel="import" href="../paper-item/paper-icon-item.html">
<link rel="import" href="../paper-item/paper-item-body.html">
<link rel="import" href="../paper-ripple/paper-ripple.html">
<link rel="import" href="paper-contact-behavior.html">
<link rel="import" href="paper-contact-shared-styles.html">

<dom-module id="paper-contact-address">

	<template>
	
		<style include="paper-contact-shared-styles"></style>

		<paper-icon-item class='item' on-tap='openInBlankTab'>
			<paper-ripple fit></paper-ripple>
			<iron-icon class='icon' icon='maps:place' item-icon></iron-icon>
			<paper-item-body three-line><div class='text'><content></content></div></paper-item-body>
		</paper-icon-item>
	</template>
</dom-module>

<script>

(function() {

	Polymer({
		is: 'paper-contact-address',
		properties: {
			latitude: Number,
			longitude: Number
		},
		
	    behaviors: [
   			Polymer.PaperContactBehavior
   	    ],

		// Private methods
		getTargetUrl: function(content) {
			encodedAddress = encodeURIComponent(content);
			return 'https://www.google.com/maps/search/' + encodedAddress + '/@' + this.latitude + '+' + this.longitude;
		}
	});

})();

{'fraction_non_alphanumeric': 0.19970792259948886, 'fraction_numerical': 0.0, 'mean_word_length': 4.239005736137667, 'pattern_counts': {'":': 0, '<': 55, '<?xml version=': 0, '>': 55, 'https://': 2, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5907771', 'n_tokens_mistral': 994, 'n_tokens_neox': 914, 'n_words': 146}